<?php
use yii\helpers\Html;
use yii\helpers\Url;

use common\models\MktPost;
?>
<a href="" class="weui_media_box weui_media_appmsg">
    <div class="weui_media_hd">
        <img class="weui_media_appmsg_thumb" src="<?php echo \common\wosotech\Util::getWxUserHeadimgurl($model->user->theHeadimgurl, 46); ?>" alt="">
    </div>
    <div class="weui_media_bd">
        <div class="weui_media_title"><span class="name"><?php echo $model->theTitle; ?></span></div>
        <p class="weui_media_desc"><?php echo date("m-d",strtotime($model->create_time)); ?></p>
    </div>
    <div style="float:right;">
        <input onclick="editStatus(<?php echo $model->id; ?>, 2); return false;" style="margin-top: -20px;" type="button" class="weui_btn weui_btn_mini weui_btn_default" value="下线"></input>
        <input onclick="editContent(<?php echo $model->id; ?>, <?php echo $model->post_type; ?>); return false;" style="margin-top: -20px;" type="button" class="weui_btn weui_btn_mini weui_btn_primary" value="编辑"></input>
    </div>
</a>

<?php
/*
`$model`: mixed, the data model
`$key`: mixed, the key value associated with the data item
`$index`: integer, the zero-based index of the data item in the items array returned by [[dataProvider]].
`$widget`: ListView, this widget instance

		<a href="" class="weui_media_box weui_media_appmsg">
			<div class="weui_media_hd">
				<img class="weui_media_appmsg_thumb" src="resources/images/avatar/tx.jpg" alt="">
			</div>
			<div class="weui_media_bd">
				<div class="weui_media_title"><span class="name">招聘市场经理</span></div>
				<p class="weui_media_desc">8-20</p>
			</div>
			<div style="float:right;">
                <input style="margin-top: -20px;" type="button" class="weui_btn weui_btn_mini weui_btn_default" value="下线"></input>
                <input style="margin-top: -20px;" type="button" class="weui_btn weui_btn_mini weui_btn_primary" value="编辑"></input>
            </div>
		</a>

*/